﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ReAnimation.Helpers.Common
{
    public static class CollectionHelper
    {
        public static bool IsEqualToCollection<T>(this ICollection<T> collection, ICollection<T> collection2)
        {
            if (collection.Count != collection2.Count) return false;

            return collection.Intersect(collection2).Count() == collection.Count;
        }
    }
}
